package com.jycrm.dao.sms;

import java.util.List;

import com.jycrm.domain.sms.SmsTarget;

public interface ISmsTargetDao {
	
	public void save(SmsTarget target);
	
	public void update(SmsTarget target);
	
	public void delete(SmsTarget target);
	
	public SmsTarget getSmsTargetByID(Long id);
	
	public List getSmsTargetByAnalysis(Boolean alysis);
	
	
	public void executeAnalysisCustomer(String tempSmsTargetTable);
	
	public void executeAnalysisSmsContactperson(String tempSmsTargetTable);
	
	public void executeAnalysisSmsFellowship(String tempSmsTargetTable) ;
	
	public void executeAnalysisSmsChannel(String tempSmsTargetTable) ;
	public void createTemSmsSendTargeTable(String tempSmsTargetTable);
	
	public void dropTemSmsSendTargeTable(String tempSmsTargetTable);
	public void updateCrmSmsSendTargetAnalysised(String tempSmsTargetTable);
	public List getSmsTargetUnAnalysised(String tempSmsTargetTable);
	public void executeAnalysisSmsChannelGroup(String crm_channels,Long smsId, Long targetId,String sendtaoperator,
			String sendbizoperator, String sendrknreceiver,String sendkeycontactperson, String sendothercontactperson);
	public void executeAnalysisSmsContactpersonGroup(String crm_contactperson,Long smsId, Long targetId,String sendtaoperator,
			String sendbizoperator, String sendrknreceiver,String sendkeycontactperson, String sendothercontactperson);
	public void executeAnalysisSmsCustomerGroup(String crm_customers,Long smsId, Long targetId,String sendtaoperator,
			String sendbizoperator, String sendrknreceiver,String sendkeycontactperson, String sendothercontactperson);
	
	public void analysisSmsMobile();
	
	public void deleteSmsSendTargetByCrmTempSmsDeleteTable();
}
